#pragma once

#define EMAC_MPE       (1 << 4)
#define EMAC_IDLE      (1 << 2)


#define MII_REG_CONF    16	
#define MII_REG_STAT    17	
#define MII_REG_10BT    18	
#define MII_REG_INTR    21	
#define MII_REG_RXEC    22	
#define MII_REG_DISC    23	
#define MII_REG_RSLS    24


#define EmacRead(off) \
	ReadLong(AT91SAM9263_PA_EMAC + (off))

#define EmacWrite(off, val) \
	WriteLong((val), AT91SAM9263_PA_EMAC + (off))

